<?php

	include("Connection.php");
	
	$query = "	INSERT INTO member (Username, FirstName, LastName, MiddleInit, Address, PhoneNo, EmailAddress)
				VALUES ('${_SESSION['username']}', '${_POST['first_name']}', '${_POST['last_name']}', '${_POST['middle_initial']}', '${_POST['address']}', '${_POST['phone']}', '${_POST['email']}');
	";
	$result = mysql_query($query);
	
	if(!$result){
		die("Can't execute".mysql_error());
	}
	mysql_close($link);
	header("Location: https://academic-php.cc.gatech.edu/groups/cs4400_Group_7/MembershipInformation.php");
?>
